{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "from random import gauss\n",
    "from itertools import product"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "def batch(coeffs, n_iter=1e5, max_hp=100,\n",
    "          prf=np.linspace(.5, 10, 20),\n",
    "          loss=np.linspace(.5, 10, 20),\n",
    "          seed=0):\n",
    "    phi = 2 ** (-1. / coeffs['hl'])\n",
    "    outputs = []\n",
    "    for thrs in product(prf, loss):\n",
    "        in_outputs = []\n",
    "        for i in range(int(n_iter)):\n",
    "            p = seed\n",
    "            hp = 0\n",
    "            count = 0\n",
    "            while True:\n",
    "                p = (1 - phi) * coeffs['forecast'] + phi * p + coeffs['sigma'] * gauss(0, 1)\n",
    "                diff = p - seed\n",
    "                hp += 1\n",
    "                if diff > thrs[0] or diff < -thrs[1] or hp > max_hp:\n",
    "                    in_outputs.append(diff)\n",
    "                    break\n",
    "        mean = np.mean(in_outputs)\n",
    "        std = np.std(in_outputs)\n",
    "        print(thrs[0], thrs[1], mean, std, mean/std)\n",
    "        outputs.append((thrs[0], thrs[1], mean, std, mean/std))\n",
    "    return outputs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "def main():\n",
    "    prf = loss = np.linspace(0, 10, 20)\n",
    "    count = 0\n",
    "    forecasts = [10,5,0,-5,-10]\n",
    "    sigmas = [5,10,25,50,100]\n",
    "    outputs = []\n",
    "    for item in product(forecasts, sigmas):\n",
    "        count += 1\n",
    "        coeffs = {'forecast': item[0], 'hl': item[1], 'sigma': 1}\n",
    "        output = batch(coeffs, n_iter=1e5, max_hp=100, prf=prf, loss=loss)\n",
    "        outputs.append(output)\n",
    "    return outputs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0.0 0.0 1.2933030962597087 1.0007276715573032 1.2923626806952466\n",
      "0.0 0.5263157894736842 1.389057282720449 0.9466065512250781 1.4674072146688195\n",
      "0.0 1.0526315789473684 1.4395648442976048 0.893233531566786 1.6116332329939747\n",
      "0.0 1.5789473684210527 1.4562780432230584 0.8627129145555429 1.6880216102633767\n",
      "0.0 2.1052631578947367 1.4558539232201428 0.8488391564837549 1.7151116464170855\n",
      "0.0 2.631578947368421 1.462501834173571 0.8487728771700592 1.7230779558481881\n",
      "0.0 3.1578947368421053 1.4647866834247192 0.8418560288029296 1.7399491520035328\n",
      "0.0 3.6842105263157894 1.4597647708179204 0.8441344210598073 1.7293036919228952\n",
      "0.0 4.2105263157894735 1.461551324195782 0.845556727553442 1.7285077116288536\n",
      "0.0 4.7368421052631575 1.465705214334722 0.8470554208075198 1.7303533845960484\n",
      "0.0 5.263157894736842 1.461390192016741 0.8422952224269299 1.735009475425961\n",
      "0.0 5.789473684210526 1.4607789246008815 0.8446199747141636 1.7295102748371993\n",
      "0.0 6.315789473684211 1.461165413531164 0.8428940601719139 1.733510155752135\n",
      "0.0 6.842105263157895 1.4619486480388395 0.8444541183777351 1.7312351449565566\n",
      "0.0 7.368421052631579 1.4636089172148308 0.8466764205917343 1.7286520347312\n",
      "0.0 7.894736842105263 1.4676082840996152 0.844859936415711 1.7371024720687933\n",
      "0.0 8.421052631578947 1.4601900553522837 0.841788102261298 1.7346290015619972\n",
      "0.0 8.947368421052632 1.4629602076939237 0.8422584474321312 1.736949284574327\n",
      "0.0 9.473684210526315 1.4664114886678008 0.8462869180592197 1.7327592538364007\n",
      "0.0 10.0 1.4629822528653493 0.843225256131214 1.734983911152793\n",
      "0.5263157894736842 0.0 1.4693206078104448 0.9848456309631932 1.4919298635395561\n",
      "0.5263157894736842 0.5263157894736842 1.5822332382749253 0.9119800382423533 1.7349428407713199\n",
      "0.5263157894736842 1.0526315789473684 1.6438801966355814 0.8275453817326267 1.986453230146484\n",
      "0.5263157894736842 1.5789473684210527 1.6675256484136052 0.7798143333573183 2.1383623986935993\n",
      "0.5263157894736842 2.1052631578947367 1.6784606076493518 0.7600423727360641 2.2083776745329198\n",
      "0.5263157894736842 2.631578947368421 1.6804148588420793 0.7590640042850848 2.2137986380012284\n",
      "0.5263157894736842 3.1578947368421053 1.6828256074394865 0.7538740629415577 2.2322370408569734\n",
      "0.5263157894736842 3.6842105263157894 1.6863927426407541 0.7562717379796692 2.2298767201665406\n",
      "0.5263157894736842 4.2105263157894735 1.6801290487079825 0.7531869591842081 2.2306932272536475\n",
      "0.5263157894736842 4.7368421052631575 1.68044780779037 0.7557762898226044 2.2234725148427246\n",
      "0.5263157894736842 5.263157894736842 1.6804814528932122 0.7560886291968966 2.2225984996999473\n",
      "0.5263157894736842 5.789473684210526 1.684942526997854 0.7562774735040987 2.2279422381720884\n",
      "0.5263157894736842 6.315789473684211 1.686370105831159 0.7566354865965643 2.2287748006859296\n",
      "0.5263157894736842 6.842105263157895 1.682027244319288 0.7550422597717622 2.227725961759729\n",
      "0.5263157894736842 7.368421052631579 1.6859873271045558 0.7574334528894291 2.2259213937183704\n",
      "0.5263157894736842 7.894736842105263 1.677928159026288 0.7556518525251648 2.220504261875557\n",
      "0.5263157894736842 8.421052631578947 1.6795385452910143 0.7540103765277948 2.227474047539321\n",
      "0.5263157894736842 8.947368421052632 1.6830671819997904 0.7569768482410736 2.223406417132306\n",
      "0.5263157894736842 9.473684210526315 1.6822245152151916 0.7571996723640336 2.2216392539674\n",
      "0.5263157894736842 10.0 1.6827300409724053 0.7558680964174411 2.2262218090007715\n",
      "1.0526315789473684 0.0 1.7598972467175746 1.0375099764923468 1.696270191702158\n",
      "1.0526315789473684 0.5263157894736842 1.901794924526035 0.9180331976958864 2.0715971157679594\n",
      "1.0526315789473684 1.0526315789473684 1.986273840179121 0.8053854303408261 2.4662400949301526\n",
      "1.0526315789473684 1.5789473684210527 2.0223862064425 0.7379947482846859 2.74038021428081\n",
      "1.0526315789473684 2.1052631578947367 2.0284833734127665 0.7107051713609666 2.8541840627504054\n",
      "1.0526315789473684 2.631578947368421 2.032035053985097 0.7045411162513521 2.884196545968721\n",
      "1.0526315789473684 3.1578947368421053 2.0349876314787534 0.7027661921149962 2.895682311288191\n",
      "1.0526315789473684 3.6842105263157894 2.0327478112451853 0.703606181580773 2.8890420017036598\n",
      "1.0526315789473684 4.2105263157894735 2.035057664623906 0.703391284703624 2.893208529703895\n",
      "1.0526315789473684 4.7368421052631575 2.032824398501334 0.7008066062165588 2.9006924028241303\n",
      "1.0526315789473684 5.263157894736842 2.028735053787053 0.7006216185042705 2.8956215455042904\n",
      "1.0526315789473684 5.789473684210526 2.0313157069686927 0.7002270020365423 2.9009388399202085\n",
      "1.0526315789473684 6.315789473684211 2.031874942259587 0.7006871173029345 2.8998320249994376\n",
      "1.0526315789473684 6.842105263157895 2.0319409086707467 0.7029632663837556 2.8905363990406396\n",
      "1.0526315789473684 7.368421052631579 2.030986517343898 0.6993835595332112 2.9039666284112213\n",
      "1.0526315789473684 7.894736842105263 2.0354375158515547 0.7032524451902473 2.894319855938671\n",
      "1.0526315789473684 8.421052631578947 2.0287815360699715 0.6993496150731349 2.9009546760926015\n",
      "1.0526315789473684 8.947368421052632 2.030090016610318 0.6992968378125036 2.9030447541572157\n",
      "1.0526315789473684 9.473684210526315 2.0327170392244414 0.7026247163661767 2.8930337801624955\n",
      "1.0526315789473684 10.0 2.030413615211916 0.6997986940351104 2.901425270607958\n",
      "1.5789473684210527 0.0 2.1466427467822786 1.149000626929389 1.8682694303823029\n",
      "1.5789473684210527 0.5263157894736842 2.3399210029612245 0.9720951031677416 2.407090618331667\n",
      "1.5789473684210527 1.0526315789473684 2.43567669219781 0.8250390403055081 2.952195681910871\n",
      "1.5789473684210527 1.5789473684210527 2.468065607935267 0.7369788740596235 3.3488960061229576\n",
      "1.5789473684210527 2.1052631578947367 2.4811077232168657 0.7028224536682253 3.530205545180403\n",
      "1.5789473684210527 2.631578947368421 2.4838680926898085 0.6918701770839718 3.590078276185538\n",
      "1.5789473684210527 3.1578947368421053 2.4837923782329345 0.6864123200462635 3.618513691691212\n",
      "1.5789473684210527 3.6842105263157894 2.485336590414681 0.6861551508966869 3.6221204302944794\n",
      "1.5789473684210527 4.2105263157894735 2.4901596336962424 0.6908027114944199 3.604733438740067\n",
      "1.5789473684210527 4.7368421052631575 2.4844489145733024 0.6867249525345466 3.617822398041258\n",
      "1.5789473684210527 5.263157894736842 2.4905225498613475 0.689802610401107 3.6104858292913042\n",
      "1.5789473684210527 5.789473684210526 2.489500135054761 0.6895888657643502 3.6101222897434164\n",
      "1.5789473684210527 6.315789473684211 2.487983006682552 0.6880146244206969 3.6161775031706846\n",
      "1.5789473684210527 6.842105263157895 2.4859983109104142 0.6898879614433028 3.6034812170218187\n",
      "1.5789473684210527 7.368421052631579 2.486657319761233 0.6874663593548299 3.6171330944759235\n",
      "1.5789473684210527 7.894736842105263 2.486621382285202 0.6890618279937945 3.6087057521746746\n",
      "1.5789473684210527 8.421052631578947 2.4836690134169617 0.6850350702727709 3.62560855815455\n",
      "1.5789473684210527 8.947368421052632 2.4882895430366094 0.6885332506556288 3.6138988794909084\n",
      "1.5789473684210527 9.473684210526315 2.4858907941650332 0.6877165284408352 3.6147027028722873\n",
      "1.5789473684210527 10.0 2.488816846837243 0.6893022322564768 3.61063221671274\n",
      "2.1052631578947367 0.0 2.5925288124794283 1.2893407626717404 2.010739819554959\n",
      "2.1052631578947367 0.5263157894736842 2.8210120192689745 1.0536922000133557 2.6772638340050516\n",
      "2.1052631578947367 1.0526315789473684 2.9356998907282534 0.8557243520804064 3.4306606836548297\n",
      "2.1052631578947367 1.5789473684210527 2.9771307789862282 0.7414579967370554 4.015238613768722\n",
      "2.1052631578947367 2.1052631578947367 2.9888550945894727 0.7040737034163735 4.2450883765245955\n",
      "2.1052631578947367 2.631578947368421 2.9920049837947507 0.6896419095973239 4.3384906603801925\n",
      "2.1052631578947367 3.1578947368421053 2.9911979366524184 0.6860270442969081 4.360174954499093\n",
      "2.1052631578947367 3.6842105263157894 2.9935428010510874 0.6892520765220613 4.3431756000741935\n",
      "2.1052631578947367 4.2105263157894735 2.9920037872235112 0.6857556744734348 4.363075507207367\n",
      "2.1052631578947367 4.7368421052631575 2.9951007084092165 0.6867343455109913 4.361367285599493\n",
      "2.1052631578947367 5.263157894736842 2.993986618443332 0.6887426572727268 4.347032359370447\n",
      "2.1052631578947367 5.789473684210526 2.9917989856037783 0.6856734502774443 4.363300029180371\n",
      "2.1052631578947367 6.315789473684211 2.9951360082559084 0.6876455093719671 4.355639595452886\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2.1052631578947367 6.842105263157895 2.9925326761124666 0.6876026089662438 4.352125249512219\n",
      "2.1052631578947367 7.368421052631579 2.9905646319555865 0.6883967861370764 4.344245487747081\n",
      "2.1052631578947367 7.894736842105263 2.9925835337831064 0.6883753213510462 4.347313799555866\n",
      "2.1052631578947367 8.421052631578947 2.9963690387261104 0.6889765309246942 4.349014667748699\n",
      "2.1052631578947367 8.947368421052632 2.9913476184206056 0.685626690894544 4.362939276062553\n",
      "2.1052631578947367 9.473684210526315 2.995860481621546 0.6879548486450536 4.354734162455541\n",
      "2.1052631578947367 10.0 2.9917059115233564 0.6869413478337495 4.355111132788291\n",
      "2.631578947368421 0.0 3.0493000527008554 1.4293530079993058 2.133342873059065\n",
      "2.631578947368421 0.5263157894736842 3.3053919790242396 1.132227420480808 2.9193710726601045\n",
      "2.631578947368421 1.0526315789473684 3.442577570855218 0.8867337492908653 3.882312558429518\n",
      "2.631578947368421 1.5789473684210527 3.484663224606097 0.7494174763063508 4.649829147007533\n",
      "2.631578947368421 2.1052631578947367 3.4991924194136215 0.7000994477798352 4.9981362369450615\n",
      "2.631578947368421 2.631578947368421 3.507555732126362 0.6862345071368059 5.1113077171840695\n",
      "2.631578947368421 3.1578947368421053 3.508206348642573 0.6793077453564661 5.16438443786865\n",
      "2.631578947368421 3.6842105263157894 3.5053008455760195 0.6779685201721749 5.170300303450407\n",
      "2.631578947368421 4.2105263157894735 3.5051454531302197 0.6764664972104646 5.181550701452827\n",
      "2.631578947368421 4.7368421052631575 3.5034571832537593 0.6747382998630918 5.192320020909782\n",
      "2.631578947368421 5.263157894736842 3.5030524724666274 0.6772418264202439 5.172528239998137\n",
      "2.631578947368421 5.789473684210526 3.5072221057727533 0.6760440533541369 5.18786030048184\n",
      "2.631578947368421 6.315789473684211 3.5053799919264232 0.6790964257297258 5.161829541599638\n",
      "2.631578947368421 6.842105263157895 3.50866457050556 0.6791874437934581 5.1659738450237755\n",
      "2.631578947368421 7.368421052631579 3.5051266856737477 0.6785592500569576 5.165542560033676\n",
      "2.631578947368421 7.894736842105263 3.507714320662435 0.678597365909815 5.169065629896075\n",
      "2.631578947368421 8.421052631578947 3.5103142468792403 0.6805593037961661 5.157984362712661\n",
      "2.631578947368421 8.947368421052632 3.503473507381038 0.6761158087044362 5.1817654050928725\n",
      "2.631578947368421 9.473684210526315 3.5060244120554294 0.6776982092510033 5.1734302440171875\n",
      "2.631578947368421 10.0 3.506730072280738 0.6796376482435412 5.15970544207424\n",
      "3.1578947368421053 0.0 3.484887059201196 1.5813848211265702 2.2036932520438515\n",
      "3.1578947368421053 0.5263157894736842 3.791096304073895 1.217900493496905 3.112812848271934\n",
      "3.1578947368421053 1.0526315789473684 3.9405391880517664 0.917597354028532 4.294409929095369\n",
      "3.1578947368421053 1.5789473684210527 3.991393289750552 0.7470759738235486 5.342687262879741\n",
      "3.1578947368421053 2.1052631578947367 4.004365797582695 0.693336156008104 5.775504079634194\n",
      "3.1578947368421053 2.631578947368421 4.009755227115987 0.6728712857715232 5.9591712589107555\n",
      "3.1578947368421053 3.1578947368421053 4.013000494572742 0.6642836008934396 6.041095232782185\n",
      "3.1578947368421053 3.6842105263157894 4.01539885946539 0.6668863092572147 6.021114549401659\n",
      "3.1578947368421053 4.2105263157894735 4.013763493750018 0.6612607716666286 6.069864818434349\n",
      "3.1578947368421053 4.7368421052631575 4.016431133127749 0.6649149515341133 6.040518601455583\n",
      "3.1578947368421053 5.263157894736842 4.015184046215936 0.6659488420295534 6.029268005000525\n",
      "3.1578947368421053 5.789473684210526 4.0138752043505015 0.6636361550324615 6.048307003638408\n",
      "3.1578947368421053 6.315789473684211 4.0199071724389865 0.669650885779889 6.0029894050798145\n",
      "3.1578947368421053 6.842105263157895 4.012720555455894 0.6635969079270957 6.046924733254997\n",
      "3.1578947368421053 7.368421052631579 4.0139977451337465 0.6651137943049249 6.035054120819374\n",
      "3.1578947368421053 7.894736842105263 4.015259713622145 0.661577051306972 6.06922459854047\n",
      "3.1578947368421053 8.421052631578947 4.015734282356311 0.6648954497043071 6.039647713249041\n",
      "3.1578947368421053 8.947368421052632 4.014954561647764 0.6642245984264913 6.044573734786327\n",
      "3.1578947368421053 9.473684210526315 4.015290553334761 0.6649621242785558 6.038374828778574\n",
      "3.1578947368421053 10.0 4.01758462416158 0.6675536976672896 6.018369216140503\n",
      "3.6842105263157894 0.0 3.9318142292772826 1.72490305928699 2.279440695584682\n",
      "3.6842105263157894 0.5263157894736842 4.272284764820649 1.2948063998311161 3.2995548719699643\n",
      "3.6842105263157894 1.0526315789473684 4.434902892817455 0.9491474410770262 4.672512089149223\n",
      "3.6842105263157894 1.5789473684210527 4.491346522062016 0.76033990915552 5.907024566223783\n",
      "3.6842105263157894 2.1052631578947367 4.511663596488672 0.6835266180889883 6.600567523035802\n",
      "3.6842105263157894 2.631578947368421 4.516365879861807 0.6596696307328447 6.846405639205272\n",
      "3.6842105263157894 3.1578947368421053 4.516590103781869 0.6519465137143127 6.927853756053781\n",
      "3.6842105263157894 3.6842105263157894 4.5182120195729665 0.6498131971065695 6.953093657825448\n",
      "3.6842105263157894 4.2105263157894735 4.515829712884348 0.6495021405213892 6.952755704945416\n",
      "3.6842105263157894 4.7368421052631575 4.51432996333245 0.6491331437241512 6.95439757925966\n",
      "3.6842105263157894 5.263157894736842 4.5135621852439884 0.6501965023706138 6.941843225528835\n",
      "3.6842105263157894 5.789473684210526 4.520976980746529 0.653459204183394 6.91852980538585\n",
      "3.6842105263157894 6.315789473684211 4.518221709962701 0.652094575912216 6.928782843565528\n",
      "3.6842105263157894 6.842105263157895 4.511631307621254 0.647009415811525 6.97305355589369\n",
      "3.6842105263157894 7.368421052631579 4.51480198995533 0.6484188965088201 6.962785961765872\n",
      "3.6842105263157894 7.894736842105263 4.515936381688094 0.6482685188924432 6.966150985402627\n",
      "3.6842105263157894 8.421052631578947 4.514862140162301 0.6483081704557856 6.964067932366453\n",
      "3.6842105263157894 8.947368421052632 4.517954634887791 0.6489652090710643 6.961782498872073\n",
      "3.6842105263157894 9.473684210526315 4.516943485733211 0.6505420266050396 6.943353851104168\n",
      "3.6842105263157894 10.0 4.518376366753899 0.6506071466724364 6.944861257462921\n",
      "4.2105263157894735 0.0 4.38040080973933 1.8616751562306988 2.352935094545845\n",
      "4.2105263157894735 0.5263157894736842 4.750119350454557 1.3839161024356958 3.43237523004056\n",
      "4.2105263157894735 1.0526315789473684 4.933313742127862 0.980361761659391 5.032136028824279\n",
      "4.2105263157894735 1.5789473684210527 4.995476172520669 0.7720010902762788 6.470814919099298\n",
      "4.2105263157894735 2.1052631578947367 5.011274192082281 0.6653895096817899 7.531339342092768\n",
      "4.2105263157894735 2.631578947368421 5.018610722365265 0.6433581552545596 7.800648334642677\n",
      "4.2105263157894735 3.1578947368421053 5.020868098613143 0.6387676865742519 7.860241217805411\n",
      "4.2105263157894735 3.6842105263157894 5.021666221905452 0.6392127420816669 7.8560170836892915\n",
      "4.2105263157894735 4.2105263157894735 5.022149133804256 0.635805098413251 7.898881506829372\n",
      "4.2105263157894735 4.7368421052631575 5.0184191840704 0.6367438730740986 7.881378048982658\n",
      "4.2105263157894735 5.263157894736842 5.017609401851078 0.6339834061603987 7.914417559032477\n",
      "4.2105263157894735 5.789473684210526 5.022531934748857 0.6381003189571832 7.8710694628031845\n",
      "4.2105263157894735 6.315789473684211 5.0177637226583585 0.6371047977477514 7.875884376317378\n",
      "4.2105263157894735 6.842105263157895 5.025230450976654 0.6418550836159107 7.829229025758994\n",
      "4.2105263157894735 7.368421052631579 5.019842288706502 0.6380089308763537 7.867981223728902\n",
      "4.2105263157894735 7.894736842105263 5.021675230138307 0.6399433194722779 7.84706250903498\n",
      "4.2105263157894735 8.421052631578947 5.020783064471934 0.6361192944436788 7.892832536800954\n",
      "4.2105263157894735 8.947368421052632 5.022062753618852 0.6396635505898228 7.851100393305345\n",
      "4.2105263157894735 9.473684210526315 5.023932431607957 0.6400259881305661 7.849575680953549\n",
      "4.2105263157894735 10.0 5.019601198723954 0.6370452798914316 7.8795045770991665\n",
      "4.7368421052631575 0.0 4.814009185209876 2.029992834802592 2.3714414665301113\n",
      "4.7368421052631575 0.5263157894736842 5.22260453024728 1.4915574203957505 3.5014438323544943\n",
      "4.7368421052631575 1.0526315789473684 5.432828247768149 1.0105607930715266 5.376052865909689\n",
      "4.7368421052631575 1.5789473684210527 5.495019838106287 0.7744470901450717 7.095410271445327\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "4.7368421052631575 2.1052631578947367 5.520052904854788 0.6628995963751912 8.327132698585203\n",
      "4.7368421052631575 2.631578947368421 5.525587340601709 0.6330546419133032 8.728452450647126\n",
      "4.7368421052631575 3.1578947368421053 5.525319100485754 0.6272701280613117 8.80851622499978\n",
      "4.7368421052631575 3.6842105263157894 5.52707578884935 0.6273450819019161 8.81026399711777\n",
      "4.7368421052631575 4.2105263157894735 5.526208029103347 0.62685544599778 8.815761375905662\n",
      "4.7368421052631575 4.7368421052631575 5.524979858199785 0.6278554922069849 8.799763523257303\n",
      "4.7368421052631575 5.263157894736842 5.525551024769229 0.6261040909209217 8.825291361124677\n",
      "4.7368421052631575 5.789473684210526 5.523647983759414 0.6269998470412286 8.809648056255753\n",
      "4.7368421052631575 6.315789473684211 5.522343217615158 0.6259202159966099 8.822758997841778\n",
      "4.7368421052631575 6.842105263157895 5.525637743242454 0.625053456436444 8.840264278747021\n",
      "4.7368421052631575 7.368421052631579 5.524201617082064 0.6233705206263873 8.861826849834234\n",
      "4.7368421052631575 7.894736842105263 5.527383061637854 0.6267095830426583 8.819688115829594\n",
      "4.7368421052631575 8.421052631578947 5.525429130101255 0.6253567378873224 8.835643394149907\n",
      "4.7368421052631575 8.947368421052632 5.526718049489764 0.624303825573139 8.8526096158645\n",
      "4.7368421052631575 9.473684210526315 5.5256590064902555 0.624359305122074 8.85012677981933\n",
      "4.7368421052631575 10.0 5.528766267876195 0.6257483258858083 8.83544715848769\n",
      "5.263157894736842 0.0 5.268718439620184 2.1725942412705943 2.4250816556242407\n",
      "5.263157894736842 0.5263157894736842 5.718783988789656 1.558126918265065 3.67029407024004\n",
      "5.263157894736842 1.0526315789473684 5.923376787826781 1.0928467229372985 5.420135013907739\n",
      "5.263157894736842 1.5789473684210527 6.002957493471678 0.783825499529655 7.658538153037677\n",
      "5.263157894736842 2.1052631578947367 6.023973125640508 0.6566064116309556 9.174404969146526\n",
      "5.263157894736842 2.631578947368421 6.026552542351195 0.625493639779591 9.634874216266702\n",
      "5.263157894736842 3.1578947368421053 6.028511222356204 0.615148144260376 9.80009657609321\n",
      "5.263157894736842 3.6842105263157894 6.031149294662427 0.6128297377469228 9.841476226065714\n",
      "5.263157894736842 4.2105263157894735 6.034305111834502 0.61450163116899 9.81983579173779\n",
      "5.263157894736842 4.7368421052631575 6.028266788702889 0.6112374789685385 9.862397179694497\n",
      "5.263157894736842 5.263157894736842 6.03221208259281 0.6124318969544121 9.849604686807867\n",
      "5.263157894736842 5.789473684210526 6.034641909113763 0.6148977385570792 9.814057737916992\n",
      "5.263157894736842 6.315789473684211 6.033910373969912 0.6141864191581087 9.824232815569006\n",
      "5.263157894736842 6.842105263157895 6.027126089912329 0.6114423752666611 9.85722667206994\n",
      "5.263157894736842 7.368421052631579 6.030468271146607 0.6123084565828337 9.848742421101608\n",
      "5.263157894736842 7.894736842105263 6.029505250253376 0.6103197113780697 9.879256949835474\n",
      "5.263157894736842 8.421052631578947 6.030124089603097 0.6122056849507203 9.849833540974867\n",
      "5.263157894736842 8.947368421052632 6.031314325787634 0.6140390262013764 9.822363186097624\n",
      "5.263157894736842 9.473684210526315 6.034654469089913 0.6152985353501128 9.807685411856404\n",
      "5.263157894736842 10.0 6.030966834054858 0.6113604623807979 9.86482967931667\n",
      "5.789473684210526 0.0 5.701820958892776 2.344320007960908 2.432185426703851\n",
      "5.789473684210526 0.5263157894736842 6.200138721207143 1.6559528919905948 3.7441516308800633\n",
      "5.789473684210526 1.0526315789473684 6.424605744661065 1.0972805553714204 5.855025602350521\n",
      "5.789473684210526 1.5789473684210527 6.503481329796745 0.7987833555382159 8.141733656198602\n",
      "5.789473684210526 2.1052631578947367 6.526620048073838 0.6561868568111319 9.946282800894888\n",
      "5.789473684210526 2.631578947368421 6.534170929566166 0.6131037962974161 10.657528087456901\n",
      "5.789473684210526 3.1578947368421053 6.539563611399159 0.6064988618458386 10.782482907711378\n",
      "5.789473684210526 3.6842105263157894 6.533301476283794 0.5988348392929623 10.910022342717387\n",
      "5.789473684210526 4.2105263157894735 6.538257741715561 0.6011526915142099 10.876201394435595\n",
      "5.789473684210526 4.7368421052631575 6.542440318280494 0.603931409795978 10.833085036081634\n",
      "5.789473684210526 5.263157894736842 6.537870418849768 0.6038416456926946 10.827127385938867\n",
      "5.789473684210526 5.789473684210526 6.539405497494045 0.600857923645981 10.883447217959953\n",
      "5.789473684210526 6.315789473684211 6.536930376820311 0.5997996962721386 10.898522319115017\n",
      "5.789473684210526 6.842105263157895 6.536575165081278 0.6018345601929828 10.86108309065082\n",
      "5.789473684210526 7.368421052631579 6.533991868760562 0.5985682224164794 10.916035339100006\n",
      "5.789473684210526 7.894736842105263 6.534356978105596 0.5998674908262507 10.893000667706207\n",
      "5.789473684210526 8.421052631578947 6.536039776485389 0.601439696519542 10.867323547661805\n",
      "5.789473684210526 8.947368421052632 6.533969499372585 0.5998699094499045 10.892310810129477\n",
      "5.789473684210526 9.473684210526315 6.535932866278569 0.6000544808889794 10.892232412956234\n",
      "5.789473684210526 10.0 6.536591441754895 0.6031012060792801 10.838299402929124\n",
      "6.315789473684211 0.0 6.153331194998534 2.4900352341609473 2.471182379502347\n",
      "6.315789473684211 0.5263157894736842 6.68199170560783 1.7476238533729824 3.8234724781945064\n",
      "6.315789473684211 1.0526315789473684 6.924629618231178 1.1605606599229088 5.96662445777815\n",
      "6.315789473684211 1.5789473684210527 7.01055486078853 0.78807597284688 8.895785561718492\n",
      "6.315789473684211 2.1052631578947367 7.034025469448242 0.6432460755951823 10.935201529119013\n",
      "6.315789473684211 2.631578947368421 7.040236794604673 0.5994565486011535 11.744365477419903\n",
      "6.315789473684211 3.1578947368421053 7.044106346545627 0.5921127736655996 11.89656203992627\n",
      "6.315789473684211 3.6842105263157894 7.046380164452611 0.5918338938065021 11.906009841937845\n",
      "6.315789473684211 4.2105263157894735 7.043549111723637 0.5887570959089877 11.963421181105314\n",
      "6.315789473684211 4.7368421052631575 7.042371852440665 0.5876486263030472 11.98398419944396\n",
      "6.315789473684211 5.263157894736842 7.0441944157579375 0.590101111281861 11.937266819335452\n",
      "6.315789473684211 5.789473684210526 7.043442625492605 0.5914620479082335 11.908528451491462\n",
      "6.315789473684211 6.315789473684211 7.0461041777143 0.5901214082156847 11.940092461683756\n",
      "6.315789473684211 6.842105263157895 7.042383895178452 0.5891568775024129 11.953325445393974\n",
      "6.315789473684211 7.368421052631579 7.046166383916514 0.5891390823271424 11.960106866588518\n",
      "6.315789473684211 7.894736842105263 7.04554466180207 0.5902929181703559 11.935675399325657\n",
      "6.315789473684211 8.421052631578947 7.042686821435779 0.5902339621776601 11.932025726631998\n",
      "6.315789473684211 8.947368421052632 7.041143438618864 0.5857935181627631 12.019838424812473\n",
      "6.315789473684211 9.473684210526315 7.043234607504986 0.590376679511144 11.930069143884666\n",
      "6.315789473684211 10.0 7.045466767294808 0.5905136943720403 11.931081081509967\n",
      "6.842105263157895 0.0 6.598015276030189 2.654798915496911 2.485316397228981\n",
      "6.842105263157895 0.5263157894736842 7.162272679573182 1.853447687214776 3.86429718463547\n",
      "6.842105263157895 1.0526315789473684 7.417574706364221 1.2201869469634365 6.079047743318051\n",
      "6.842105263157895 1.5789473684210527 7.514182384323203 0.8068466498885692 9.313024210190326\n",
      "6.842105263157895 2.1052631578947367 7.538984862591728 0.6499308657881363 11.599671995035358\n",
      "6.842105263157895 2.631578947368421 7.550603191797035 0.5982375292585334 12.621413439500179\n",
      "6.842105263157895 3.1578947368421053 7.545968822601239 0.5800245694873687 13.009739965447393\n",
      "6.842105263157895 3.6842105263157894 7.551920180477497 0.577897219928527 13.067929590337016\n",
      "6.842105263157895 4.2105263157894735 7.550288869026123 0.5757152223607271 13.11462434164251\n",
      "6.842105263157895 4.7368421052631575 7.549558532577067 0.5772607960664421 13.078245714971645\n",
      "6.842105263157895 5.263157894736842 7.548292049532972 0.5745123385936927 13.138607376144249\n",
      "6.842105263157895 5.789473684210526 7.548639203060712 0.5753590150759462 13.119876468893612\n",
      "6.842105263157895 6.315789473684211 7.550357385092492 0.5761098149576105 13.105760723149698\n",
      "6.842105263157895 6.842105263157895 7.550525068751436 0.5796796278777481 13.025341422458629\n",
      "6.842105263157895 7.368421052631579 7.5491022105387176 0.575247402355964 13.123226944825594\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "6.842105263157895 7.894736842105263 7.547084463790998 0.5763042243191778 13.095660495473227\n",
      "6.842105263157895 8.421052631578947 7.550661464664199 0.5776620814223626 13.07106993429861\n",
      "6.842105263157895 8.947368421052632 7.549073178322123 0.5763815160163508 13.097354735622666\n",
      "6.842105263157895 9.473684210526315 7.549478219890243 0.5765907580957205 13.09330424376477\n",
      "6.842105263157895 10.0 7.549036776504349 0.5775183470189489 13.071509875783493\n",
      "7.368421052631579 0.0 7.029940069924132 2.8220953414782435 2.4910356381658514\n",
      "7.368421052631579 0.5263157894736842 7.6567604762941945 1.9304079533420118 3.9663950114992303\n",
      "7.368421052631579 1.0526315789473684 7.928719906264064 1.2313191276393651 6.439207942350967\n",
      "7.368421052631579 1.5789473684210527 8.01831450037492 0.8522195502837543 9.408742732673932\n",
      "7.368421052631579 2.1052631578947367 8.0479148448999 0.6418987009491556 12.537671182383917\n",
      "7.368421052631579 2.631578947368421 8.052513831628653 0.5835070876082138 13.80019883671984\n",
      "7.368421052631579 3.1578947368421053 8.058282672578875 0.5671699523535478 14.207880088040541\n",
      "7.368421052631579 3.6842105263157894 8.055347052804919 0.5666132192716463 14.216659228599847\n",
      "7.368421052631579 4.2105263157894735 8.057026233420604 0.5659619575978987 14.235985520328757\n",
      "7.368421052631579 4.7368421052631575 8.055334774596183 0.5648854599551152 14.26012058309351\n",
      "7.368421052631579 5.263157894736842 8.053614097642766 0.5631372445677676 14.301334488760846\n",
      "7.368421052631579 5.789473684210526 8.056230795117402 0.5661914855846891 14.228809510969548\n",
      "7.368421052631579 6.315789473684211 8.057811571544937 0.5663682889719703 14.227158773615095\n",
      "7.368421052631579 6.842105263157895 8.057691700566627 0.5671508842301484 14.207315768367623\n",
      "7.368421052631579 7.368421052631579 8.05396753479484 0.5631759553978692 14.300979041452365\n",
      "7.368421052631579 7.894736842105263 8.055454600455041 0.565292243862628 14.250070981714375\n",
      "7.368421052631579 8.421052631578947 8.054566582310551 0.5632421667104526 14.30036147569041\n",
      "7.368421052631579 8.947368421052632 8.060992355276511 0.5645646274333944 14.278245507379971\n",
      "7.368421052631579 9.473684210526315 8.055910287814184 0.5637565930596808 14.289695920170574\n",
      "7.368421052631579 10.0 8.057976250175967 0.5641486789052876 14.283426606284376\n",
      "7.894736842105263 0.0 7.4937877982969106 2.9703911581975873 2.522828610506668\n",
      "7.894736842105263 0.5263157894736842 8.13097590224157 2.0479222673086137 3.9703537736944114\n",
      "7.894736842105263 1.0526315789473684 8.424554303428216 1.295068261464574 6.505104444379642\n",
      "7.894736842105263 1.5789473684210527 8.52344474208042 0.8167900662117921 10.435294324294961\n",
      "7.894736842105263 2.1052631578947367 8.555439454241233 0.6251736451484274 13.684901020115808\n",
      "7.894736842105263 2.631578947368421 8.563879031772768 0.5739731419059183 14.920348020703205\n",
      "7.894736842105263 3.1578947368421053 8.565928625283581 0.5545917517021105 15.4454670466946\n",
      "7.894736842105263 3.6842105263157894 8.564246080099347 0.5512504445279954 15.536034782579497\n",
      "7.894736842105263 4.2105263157894735 8.562164720177302 0.5550690058263942 15.425405905036683\n",
      "7.894736842105263 4.7368421052631575 8.564165112385295 0.5535685444575092 15.470830483654156\n",
      "7.894736842105263 5.263157894736842 8.564112660199482 0.553711107865819 15.466752496998536\n",
      "7.894736842105263 5.789473684210526 8.565522510419 0.5524440917182396 15.504777114690604\n",
      "7.894736842105263 6.315789473684211 8.564776844003546 0.5544183409087117 15.448220616160656\n",
      "7.894736842105263 6.842105263157895 8.562208626225958 0.5526730115313452 15.492358858815647\n",
      "7.894736842105263 7.368421052631579 8.563608990259192 0.5512205037212788 15.535722877589704\n",
      "7.894736842105263 7.894736842105263 8.562384964354811 0.5518706211650883 15.515203448007847\n",
      "7.894736842105263 8.421052631578947 8.563559384641266 0.5547463587855428 15.436891561377186\n",
      "7.894736842105263 8.947368421052632 8.565767807291753 0.552509452931158 15.503386886593297\n",
      "7.894736842105263 9.473684210526315 8.563978288011999 0.551792021659038 15.520301040713184\n",
      "7.894736842105263 10.0 8.563643018847907 0.5516606827380667 15.52338835594343\n",
      "8.421052631578947 0.0 7.953730908695385 3.10997063978156 2.5574938897989226\n",
      "8.421052631578947 0.5263157894736842 8.619423022464087 2.138808937321807 4.03001075601322\n",
      "8.421052631578947 1.0526315789473684 8.919105172739298 1.3719882656519264 6.500861119611118\n",
      "8.421052631578947 1.5789473684210527 9.028196971732708 0.8631702571225927 10.459346689989655\n",
      "8.421052631578947 2.1052631578947367 9.062428129509469 0.6402332211776284 14.154885797460297\n",
      "8.421052631578947 2.631578947368421 9.066730219147262 0.5562540150785136 16.299622067208844\n",
      "8.421052631578947 3.1578947368421053 9.071412455912975 0.544717538884964 16.65342458860815\n",
      "8.421052631578947 3.6842105263157894 9.070190061859087 0.5413102698115095 16.755991097337635\n",
      "8.421052631578947 4.2105263157894735 9.071595918631782 0.5412654748135425 16.75997517069938\n",
      "8.421052631578947 4.7368421052631575 9.074320138095612 0.542589279009557 16.724105118073627\n",
      "8.421052631578947 5.263157894736842 9.069458506429156 0.5399903437282106 16.795593868978553\n",
      "8.421052631578947 5.789473684210526 9.070609286828379 0.5387416542028823 16.836658565503306\n",
      "8.421052631578947 6.315789473684211 9.070804128096357 0.5425988772373237 16.717329335956105\n",
      "8.421052631578947 6.842105263157895 9.074000254505426 0.543932619936502 16.682213792518482\n",
      "8.421052631578947 7.368421052631579 9.07153211454574 0.5400063929751485 16.798934665507225\n",
      "8.421052631578947 7.894736842105263 9.073089374157338 0.5413197624261264 16.761053270054106\n",
      "8.421052631578947 8.421052631578947 9.070588126918553 0.5436202235678785 16.685523705109112\n",
      "8.421052631578947 8.947368421052632 9.069104310622198 0.5388667750798745 16.829956364034345\n",
      "8.421052631578947 9.473684210526315 9.07205036049604 0.5400254068875838 16.799302856475702\n",
      "8.421052631578947 10.0 9.072774423354453 0.5458998246987339 16.619852238204054\n",
      "8.947368421052632 0.0 8.386952283797383 3.288991183488375 2.5500075299387093\n",
      "8.947368421052632 0.5263157894736842 9.091099306109967 2.2639612952136146 4.015571876308152\n",
      "8.947368421052632 1.0526315789473684 9.423412300418496 1.4043807391787435 6.71001248986734\n",
      "8.947368421052632 1.5789473684210527 9.53525344967104 0.8775359329627216 10.865940745558172\n",
      "8.947368421052632 2.1052631578947367 9.570569901765532 0.6301491687597095 15.187784696443856\n",
      "8.947368421052632 2.631578947368421 9.578855209482068 0.5459216659160754 17.546208197120038\n",
      "8.947368421052632 3.1578947368421053 9.579853800074805 0.5362103604535233 17.86584987274812\n",
      "8.947368421052632 3.6842105263157894 9.57776484430265 0.5271039899263736 18.170541349232586\n",
      "8.947368421052632 4.2105263157894735 9.579268533442628 0.5283497613437865 18.130543882671674\n",
      "8.947368421052632 4.7368421052631575 9.580122513690823 0.5305998743492327 18.05526721136261\n",
      "8.947368421052632 5.263157894736842 9.579611672217448 0.5280754524265974 18.140611589115696\n",
      "8.947368421052632 5.789473684210526 9.57889523162127 0.5283341974911077 18.13037141473791\n",
      "8.947368421052632 6.315789473684211 9.57986765956497 0.5319571591621219 18.008720241032343\n",
      "8.947368421052632 6.842105263157895 9.581151763918253 0.5312096844107881 18.03647795793776\n",
      "8.947368421052632 7.368421052631579 9.57788841962259 0.5283150113118751 18.129124129635166\n",
      "8.947368421052632 7.894736842105263 9.580471098308266 0.5296436812214754 18.088521468270105\n",
      "8.947368421052632 8.421052631578947 9.58141959831759 0.5299332128274636 18.080428564187994\n",
      "8.947368421052632 8.947368421052632 9.582031071321898 0.5317164228364315 18.02094247946439\n",
      "8.947368421052632 9.473684210526315 9.581828653709033 0.5311783922480371 18.03881481917423\n",
      "8.947368421052632 10.0 9.578966824471781 0.5300841933934157 18.070651688650717\n",
      "9.473684210526315 0.0 8.82856825602946 3.4590246346380544 2.552328817673559\n",
      "9.473684210526315 0.5263157894736842 9.582314726984396 2.358835984997631 4.0623064884242135\n",
      "9.473684210526315 1.0526315789473684 9.928453167927579 1.4348731189150716 6.919394500493971\n",
      "9.473684210526315 1.5789473684210527 10.04264888977978 0.9066732697546969 11.0763703141892\n",
      "9.473684210526315 2.1052631578947367 10.076379082617759 0.6396345349073124 15.75333809028604\n",
      "9.473684210526315 2.631578947368421 10.083083965166072 0.5428495366443727 18.57436229474323\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "9.473684210526315 3.1578947368421053 10.086446339518393 0.5216766344384873 19.33467146822678\n",
      "9.473684210526315 3.6842105263157894 10.086901538655598 0.5210418849524485 19.359099200971436\n",
      "9.473684210526315 4.2105263157894735 10.087506081275219 0.5198181821950884 19.4058353993654\n",
      "9.473684210526315 4.7368421052631575 10.086402274594633 0.5153457198374927 19.572108365963036\n",
      "9.473684210526315 5.263157894736842 10.087091994190137 0.5191563391037929 19.429777187356013\n",
      "9.473684210526315 5.789473684210526 10.087093995401874 0.5182328966275142 19.464403091824735\n",
      "9.473684210526315 6.315789473684211 10.086732504181354 0.5180811040148793 19.46940821816127\n",
      "9.473684210526315 6.842105263157895 10.089106698715346 0.5188327752330385 19.44577748424573\n",
      "9.473684210526315 7.368421052631579 10.089729727324944 0.5189521889518316 19.442503456250876\n",
      "9.473684210526315 7.894736842105263 10.086134669641394 0.5170719723600647 19.50624905002177\n",
      "9.473684210526315 8.421052631578947 10.08787116452336 0.5197301298815173 19.409825570095556\n",
      "9.473684210526315 8.947368421052632 10.088196621451562 0.5215166561557084 19.34395862984584\n",
      "9.473684210526315 9.473684210526315 10.085983581319562 0.5169106394104762 19.512044853289105\n",
      "9.473684210526315 10.0 10.086474837655572 0.5171076977548157 19.505559250904884\n",
      "10.0 0.0 9.284473189302677 3.610989478370413 2.571171487736548\n",
      "10.0 0.5263157894736842 10.06511938721878 2.470098531711734 4.074784571546559\n",
      "10.0 1.0526315789473684 10.440364624090734 1.450676800261169 7.1968922520930425\n",
      "10.0 1.5789473684210527 10.550164791334614 0.9195977410918682 11.472586675569756\n",
      "10.0 2.1052631578947367 10.584024262831154 0.6288520749290781 16.830705796788248\n",
      "10.0 2.631578947368421 10.596684521450898 0.5315194475185833 19.936588531091164\n",
      "10.0 3.1578947368421053 10.595231378818541 0.5135538032042011 20.63120030016724\n",
      "10.0 3.6842105263157894 10.596388458104794 0.5101072854388373 20.772862416557896\n",
      "10.0 4.2105263157894735 10.596102503815041 0.5087021888263712 20.82967743516369\n",
      "10.0 4.7368421052631575 10.597517407199556 0.5071865334829978 20.894713695222375\n",
      "10.0 5.263157894736842 10.597820135306238 0.5057098829986484 20.956323954884155\n",
      "10.0 5.789473684210526 10.595083514928875 0.5070996756224695 20.893492984240847\n",
      "10.0 6.315789473684211 10.596957049312532 0.5052297109451557 20.974532613072842\n",
      "10.0 6.842105263157895 10.597638332252272 0.5089304322971374 20.823353566062394\n",
      "10.0 7.368421052631579 10.597140955519576 0.5066521526470514 20.9160089425335\n",
      "10.0 7.894736842105263 10.594817591046823 0.505348398123331 20.965372860370962\n",
      "10.0 8.421052631578947 10.598974339787588 0.5073512717299874 20.890800773292174\n",
      "10.0 8.947368421052632 10.600531129386761 0.5080695724184899 20.864329817915664\n",
      "10.0 9.473684210526315 10.596127223163856 0.5067017335941046 20.911961654451186\n",
      "10.0 10.0 10.597061937599873 0.5090216390411318 20.818490069620733\n",
      "0.0 0.0 0.6724159728590969 1.000950048279027 0.6717777515623365\n",
      "0.0 0.5263157894736842 0.78094469406396 1.014156268800798 0.7700437477819845\n",
      "0.0 1.0526315789473684 0.871393966299367 0.9743452947721712 0.8943379425905915\n",
      "0.0 1.5789473684210527 0.9443974268491191 0.9014186350685616 1.0476790584402424\n",
      "0.0 2.1052631578947367 0.9921117056718405 0.8350167105267395 1.188133953685793\n",
      "0.0 2.631578947368421 1.0225692773377528 0.7870669042924713 1.2992151896629232\n",
      "0.0 3.1578947368421053 1.0298086581558445 0.7537927312312295 1.3661695257710649\n",
      "0.0 3.6842105263157894 1.0334232376185895 0.7329414611425457 1.4099669515320334\n",
      "0.0 4.2105263157894735 1.0371748582578266 0.7310193087920047 1.4188063786875043\n",
      "0.0 4.7368421052631575 1.038648245548029 0.7232906006561617 1.4360040689119673\n",
      "0.0 5.263157894736842 1.0428696181710293 0.7207692574111019 1.4468841552938383\n",
      "0.0 5.789473684210526 1.0418038462824635 0.7222481644910302 1.4424458205672628\n",
      "0.0 6.315789473684211 1.0414247286140994 0.7198315912294699 1.4467616332805697\n",
      "0.0 6.842105263157895 1.043445221062147 0.7183051711156638 1.4526489060930456\n",
      "0.0 7.368421052631579 1.0440789008505376 0.7227246546444542 1.444642706099703\n",
      "0.0 7.894736842105263 1.0434426042232832 0.720919447887041 1.4473775222481964\n",
      "0.0 8.421052631578947 1.0462179298962033 0.7189625358206898 1.4551772557967213\n",
      "0.0 8.947368421052632 1.0428073531950863 0.7207601679817539 1.4468160138692419\n",
      "0.0 9.473684210526315 1.047223376185035 0.721864309369197 1.4507205337526021\n",
      "0.0 10.0 1.0457533034911115 0.7207213017268751 1.4509815388908966\n",
      "0.5263157894736842 0.0 0.813035484932411 1.0895952915198606 0.7461811658513315\n",
      "0.5263157894736842 0.5263157894736842 0.981497081835192 1.0913454063416732 0.899345959704264\n",
      "0.5263157894736842 1.0526315789473684 1.1328412669537848 1.0244255639958877 1.105830727744639\n",
      "0.5263157894736842 1.5789473684210527 1.2441013723197754 0.921320271836357 1.3503462480425592\n",
      "0.5263157894736842 2.1052631578947367 1.3138658007077122 0.8235365366100874 1.5953946695746624\n",
      "0.5263157894736842 2.631578947368421 1.3413416510223903 0.7470487865373194 1.795520821658389\n",
      "0.5263157894736842 3.1578947368421053 1.3604488970419666 0.6916878235907572 1.9668539052479943\n",
      "0.5263157894736842 3.6842105263157894 1.3721350013653626 0.6668115598049555 2.057755270119667\n",
      "0.5263157894736842 4.2105263157894735 1.3752481840197852 0.6487488008697291 2.1198469764816408\n",
      "0.5263157894736842 4.7368421052631575 1.3759126187217763 0.6402413717165444 2.1490529658101156\n",
      "0.5263157894736842 5.263157894736842 1.3728754233274367 0.6365120976160855 2.156872474960392\n",
      "0.5263157894736842 5.789473684210526 1.3766362224367066 0.6365292086092834 2.1627227844648966\n",
      "0.5263157894736842 6.315789473684211 1.3761437867175732 0.6395082953664589 2.151877929791354\n",
      "0.5263157894736842 6.842105263157895 1.3749515362939113 0.6334422999952612 2.170602652055597\n",
      "0.5263157894736842 7.368421052631579 1.377681390270569 0.6388354767626173 2.156551162831705\n",
      "0.5263157894736842 7.894736842105263 1.3797098721978007 0.6372745955173892 2.16501627697499\n",
      "0.5263157894736842 8.421052631578947 1.3796809709901159 0.6361531712140313 2.1687873823801587\n",
      "0.5263157894736842 8.947368421052632 1.3781206159641548 0.6345354353587626 2.171857612940046\n",
      "0.5263157894736842 9.473684210526315 1.3823564642281227 0.6368454282380864 2.170631055721931\n",
      "0.5263157894736842 10.0 1.3747501128885964 0.6355407302612399 2.163118817457228\n",
      "1.0526315789473684 0.0 1.0359378852514096 1.2613657488868657 0.821282713729628\n",
      "1.0526315789473684 0.5263157894736842 1.288596927079845 1.250391288663582 1.0305549460897934\n",
      "1.0526315789473684 1.0526315789473684 1.4915002141874845 1.1495520389984255 1.297462110098982\n",
      "1.0526315789473684 1.5789473684210527 1.6417260959154167 0.9915072653706251 1.655788266263223\n",
      "1.0526315789473684 2.1052631578947367 1.73298780641636 0.853946582117877 2.0293866650515406\n",
      "1.0526315789473684 2.631578947368421 1.7716291685230567 0.7684066918494529 2.3055878967672454\n",
      "1.0526315789473684 3.1578947368421053 1.801576123608172 0.6852966499799052 2.6288996504812903\n",
      "1.0526315789473684 3.6842105263157894 1.8085985568881695 0.6428302616164567 2.813493179895233\n",
      "1.0526315789473684 4.2105263157894735 1.814164352259497 0.6203458237207248 2.9244403409995723\n",
      "1.0526315789473684 4.7368421052631575 1.8193525808279443 0.6114235069806634 2.975601297719622\n",
      "1.0526315789473684 5.263157894736842 1.816804093411974 0.6102615509687491 2.977090872803505\n",
      "1.0526315789473684 5.789473684210526 1.8118991856234619 0.6024938304769105 3.007332347601358\n",
      "1.0526315789473684 6.315789473684211 1.8228926253189666 0.6064692242966969 3.0057462972386064\n",
      "1.0526315789473684 6.842105263157895 1.8215670636870183 0.6030329474546204 3.0206758542394487\n",
      "1.0526315789473684 7.368421052631579 1.8179116323421596 0.6036593643137266 3.0114858475008703\n",
      "1.0526315789473684 7.894736842105263 1.8179239896487482 0.601693455124281 3.021345793554049\n",
      "1.0526315789473684 8.421052631578947 1.8193203906247593 0.6018108468714461 3.023076769191878\n",
      "1.0526315789473684 8.947368421052632 1.8206923572132026 0.6019729203946895 3.02454196115574\n",
      "1.0526315789473684 9.473684210526315 1.8196712295505504 0.603559080955385 3.0149015845642793\n",
      "1.0526315789473684 10.0 1.8170801821734477 0.6027909198265025 3.014445178929448\n",
      "1.5789473684210527 0.0 1.3085433065709953 1.4858254087482534 0.8806844322802293\n",
      "1.5789473684210527 0.5263157894736842 1.639728748943221 1.4560101239454906 1.1261794969528718\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1.5789473684210527 1.0526315789473684 1.9093094048462165 1.3135936173972471 1.4535008236636533\n",
      "1.5789473684210527 1.5789473684210527 2.098059933603002 1.1204314677118488 1.8725464198963204\n",
      "1.5789473684210527 2.1052631578947367 2.207581535315874 0.940126117970177 2.3481759448213775\n",
      "1.5789473684210527 2.631578947368421 2.264674823464419 0.810180647770875 2.7952714369263556\n",
      "1.5789473684210527 3.1578947368421053 2.297362906970564 0.703708214803024 3.264652676555186\n",
      "1.5789473684210527 3.6842105263157894 2.311028672124215 0.6515393115485849 3.5470287535395824\n",
      "1.5789473684210527 4.2105263157894735 2.3131990500879738 0.620759461747802 3.7264015977701916\n",
      "1.5789473684210527 4.7368421052631575 2.316454025573347 0.6065790069808985 3.8188826169618713\n",
      "1.5789473684210527 5.263157894736842 2.3196836564601866 0.6011503056658465 3.8587415403388294\n",
      "1.5789473684210527 5.789473684210526 2.3158050593341324 0.5953893917679334 3.889563857457458\n",
      "1.5789473684210527 6.315789473684211 2.3181126686867346 0.5987685633652183 3.8714668914119392\n",
      "1.5789473684210527 6.842105263157895 2.319046688749391 0.5968994688007636 3.8851545527567812\n",
      "1.5789473684210527 7.368421052631579 2.315983394448837 0.5958753258564663 3.8866912153478026\n",
      "1.5789473684210527 7.894736842105263 2.320399421290429 0.5981234169027452 3.879465935819941\n",
      "1.5789473684210527 8.421052631578947 2.3182710816466336 0.598180632741643 3.8755368441490576\n",
      "1.5789473684210527 8.947368421052632 2.317350812230062 0.5957663072489985 3.8896976617066956\n",
      "1.5789473684210527 9.473684210526315 2.319025572132587 0.5960827647930766 3.8904422491356723\n",
      "1.5789473684210527 10.0 2.3223666960044067 0.595875316303908 3.8974037562246573\n",
      "2.1052631578947367 0.0 1.6170127033816843 1.7273787673261372 0.9361077801626033\n",
      "2.1052631578947367 0.5263157894736842 2.0254276265038533 1.667185731751201 1.2148782153841715\n",
      "2.1052631578947367 1.0526315789473684 2.3631333495033617 1.4712276654369687 1.6062322677989396\n",
      "2.1052631578947367 1.5789473684210527 2.5864018216437414 1.2257504050158674 2.1100558572609733\n",
      "2.1052631578947367 2.1052631578947367 2.7153436696257582 0.9933414403488812 2.73354514301958\n",
      "2.1052631578947367 2.631578947368421 2.78152593566957 0.8311321662503927 3.346671021310933\n",
      "2.1052631578947367 3.1578947368421053 2.80930514715503 0.7195272525294022 3.904376293294371\n",
      "2.1052631578947367 3.6842105263157894 2.8284328548546043 0.6660436647602291 4.246617758721299\n",
      "2.1052631578947367 4.2105263157894735 2.8334571543977027 0.6207529262926782 4.564549008765782\n",
      "2.1052631578947367 4.7368421052631575 2.8341285766102158 0.6023874321037836 4.70482686983073\n",
      "2.1052631578947367 5.263157894736842 2.8364868557025904 0.5978633373240416 4.744373301762131\n",
      "2.1052631578947367 5.789473684210526 2.8354920148111233 0.5959519503361915 4.7579205223031\n",
      "2.1052631578947367 6.315789473684211 2.8373085273119734 0.5949973530720563 4.768606973900883\n",
      "2.1052631578947367 6.842105263157895 2.8403721762402183 0.5943680579078825 4.778810264868625\n",
      "2.1052631578947367 7.368421052631579 2.836746598025002 0.5939644271604656 4.775953690672162\n",
      "2.1052631578947367 7.894736842105263 2.837826590205487 0.5928785455790948 4.786522655215389\n",
      "2.1052631578947367 8.421052631578947 2.8376379280238515 0.5983035271710103 4.742806617639716\n",
      "2.1052631578947367 8.947368421052632 2.8358532393344054 0.5952031983751963 4.7645127698839715\n",
      "2.1052631578947367 9.473684210526315 2.8365622909106927 0.5963390782035028 4.7566265478625995\n",
      "2.1052631578947367 10.0 2.8383377089345387 0.5947479065756444 4.772337451806631\n",
      "2.631578947368421 0.0 1.9162807974388234 1.9662890241373292 0.9745672044726762\n",
      "2.631578947368421 0.5263157894736842 2.4176823771417375 1.875410481106831 1.2891483765809328\n",
      "2.631578947368421 1.0526315789473684 2.813464357361717 1.6272455960804202 1.7289734039769817\n",
      "2.631578947368421 1.5789473684210527 3.066403381524203 1.3426523578604506 2.283840164263065\n",
      "2.631578947368421 2.1052631578947367 3.2109633921681975 1.0853230355188812 2.958532424987249\n",
      "2.631578947368421 2.631578947368421 3.28700727880594 0.8816936480006237 3.728060518820495\n",
      "2.631578947368421 3.1578947368421053 3.3278168971175415 0.7391279762744675 4.502355483675795\n",
      "2.631578947368421 3.6842105263157894 3.3468218514557795 0.6569674017013069 5.094349952202692\n",
      "2.631578947368421 4.2105263157894735 3.350759679347679 0.6233667255424917 5.375262332829273\n",
      "2.631578947368421 4.7368421052631575 3.351279904321321 0.5987033247948843 5.597563543629007\n",
      "2.631578947368421 5.263157894736842 3.356847406574321 0.5933714984173901 5.6572440967042255\n",
      "2.631578947368421 5.789473684210526 3.356123746302623 0.5892260655180374 5.695816839589364\n",
      "2.631578947368421 6.315789473684211 3.3565642400323723 0.588175726584146 5.706737099685758\n",
      "2.631578947368421 6.842105263157895 3.35306055915842 0.5875937361318623 5.70642665667552\n",
      "2.631578947368421 7.368421052631579 3.354078633210822 0.588950554976188 5.6950088676738435\n",
      "2.631578947368421 7.894736842105263 3.359065005318966 0.5913600811321492 5.680236310317211\n",
      "2.631578947368421 8.421052631578947 3.356794237018391 0.5914136973161387 5.675881793491883\n",
      "2.631578947368421 8.947368421052632 3.3550636449739795 0.5889994687568576 5.6962082700264185\n",
      "2.631578947368421 9.473684210526315 3.3583547607483033 0.591888173576052 5.673968345165435\n",
      "2.631578947368421 10.0 3.358219834214491 0.5884380649678024 5.707006453428948\n",
      "3.1578947368421053 0.0 2.225186060619731 2.2103897679374565 1.0066939744731451\n",
      "3.1578947368421053 0.5263157894736842 2.810017473217128 2.0897852122856833 1.3446441561062141\n",
      "3.1578947368421053 1.0526315789473684 3.258396195982467 1.798787104575195 1.8114407134089257\n",
      "3.1578947368421053 1.5789473684210527 3.55465550304594 1.4457149182248497 2.4587527307324155\n",
      "3.1578947368421053 2.1052631578947367 3.71668761182159 1.133682908277284 3.278419022360825\n",
      "3.1578947368421053 2.631578947368421 3.800079141370903 0.9112860695377821 4.170017811529107\n",
      "3.1578947368421053 3.1578947368421053 3.8395857352185754 0.7735480387864979 4.963603477350829\n",
      "3.1578947368421053 3.6842105263157894 3.855024575789834 0.6837869398284799 5.637756955049218\n",
      "3.1578947368421053 4.2105263157894735 3.8648744099588277 0.6239182324386919 6.194520706427027\n",
      "3.1578947368421053 4.7368421052631575 3.871522793103544 0.6078452848697766 6.3692569301297945\n",
      "3.1578947368421053 5.263157894736842 3.8700156280359552 0.5858551754252619 6.605754784408586\n",
      "3.1578947368421053 5.789473684210526 3.873548023989653 0.5867518034010794 6.601680645098683\n",
      "3.1578947368421053 6.315789473684211 3.8740073685375602 0.5834582954966882 6.63973311963914\n",
      "3.1578947368421053 6.842105263157895 3.873768861201368 0.5859864846079402 6.610679534346512\n",
      "3.1578947368421053 7.368421052631579 3.872440831648219 0.5806447198492253 6.6692087248356735\n",
      "3.1578947368421053 7.894736842105263 3.87157506646695 0.583949273440513 6.629985244533999\n",
      "3.1578947368421053 8.421052631578947 3.8737306760604495 0.5836147378148542 6.6374791880073305\n",
      "3.1578947368421053 8.947368421052632 3.873695263371432 0.5853801166942432 6.61740150185994\n",
      "3.1578947368421053 9.473684210526315 3.871450047913426 0.5827431577462902 6.6434929290048315\n",
      "3.1578947368421053 10.0 3.873954733356529 0.5840126225490079 6.633340759739218\n",
      "3.6842105263157894 0.0 2.5037314150602494 2.4617680530788686 1.0170460258954528\n",
      "3.6842105263157894 0.5263157894736842 3.1944195680267606 2.3047787463757397 1.3859983623373737\n",
      "3.6842105263157894 1.0526315789473684 3.703945000065354 1.9649043088204345 1.8850510854082738\n",
      "3.6842105263157894 1.5789473684210527 4.043026725178736 1.556861840422123 2.596907843847288\n",
      "3.6842105263157894 2.1052631578947367 4.214458852657729 1.2139113408814908 3.4718012022174274\n",
      "3.6842105263157894 2.631578947368421 4.306404841662653 0.9668537529683625 4.454039536425699\n",
      "3.6842105263157894 3.1578947368421053 4.352737748817469 0.7840761685394968 5.55142207283935\n",
      "3.6842105263157894 3.6842105263157894 4.370489485863071 0.6836316174375777 6.393047621531547\n",
      "3.6842105263157894 4.2105263157894735 4.381192707682614 0.6226334669136597 7.036551904926999\n",
      "3.6842105263157894 4.7368421052631575 4.387480369492918 0.59992149853876 7.313424139957621\n",
      "3.6842105263157894 5.263157894736842 4.386708445168725 0.5834219772204651 7.5189290366945905\n",
      "3.6842105263157894 5.789473684210526 4.3901666602787035 0.5806043539750076 7.561373989399466\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "3.6842105263157894 6.315789473684211 4.390059938015272 0.5796196477676796 7.574035757626482\n",
      "3.6842105263157894 6.842105263157895 4.390211887575261 0.5747291924321649 7.638748727894897\n",
      "3.6842105263157894 7.368421052631579 4.3907617873311855 0.5797376389997146 7.57370488296577\n",
      "3.6842105263157894 7.894736842105263 4.386931066918823 0.5746759255685223 7.63374777284931\n",
      "3.6842105263157894 8.421052631578947 4.387017315007624 0.5731109683467213 7.654743247477968\n",
      "3.6842105263157894 8.947368421052632 4.38694300699883 0.5754998750091521 7.622839200319662\n",
      "3.6842105263157894 9.473684210526315 4.3875823948844195 0.5739561325662484 7.644455988764936\n",
      "3.6842105263157894 10.0 4.3889396541514145 0.577354080024721 7.6018162960994236\n",
      "4.2105263157894735 0.0 2.8549973203199954 2.6983140213240038 1.058067110706081\n",
      "4.2105263157894735 0.5263157894736842 3.603101956930564 2.5074746623641113 1.4369445127447338\n",
      "4.2105263157894735 1.0526315789473684 4.174162643202391 2.1055768894651923 1.9824318285819573\n",
      "4.2105263157894735 1.5789473684210527 4.511996401433389 1.6897955142821526 2.6701434364678995\n",
      "4.2105263157894735 2.1052631578947367 4.721844445027316 1.2809007170111504 3.6863469450194803\n",
      "4.2105263157894735 2.631578947368421 4.819677923124796 0.9803594362821187 4.916235560910981\n",
      "4.2105263157894735 3.1578947368421053 4.863494674144188 0.7998842668415643 6.0802479505544715\n",
      "4.2105263157894735 3.6842105263157894 4.888644608151389 0.6837164487030016 7.150105306702894\n",
      "4.2105263157894735 4.2105263157894735 4.898440378013333 0.613555980300023 7.983689402909972\n",
      "4.2105263157894735 4.7368421052631575 4.903138007681662 0.591544704724408 8.288702389730565\n",
      "4.2105263157894735 5.263157894736842 4.90201244717213 0.5866650531436554 8.355726015900567\n",
      "4.2105263157894735 5.789473684210526 4.901837749040992 0.5705496893465679 8.591430055206775\n",
      "4.2105263157894735 6.315789473684211 4.903994150974652 0.5673149635609999 8.644217878887934\n",
      "4.2105263157894735 6.842105263157895 4.899412960887635 0.565918860517164 8.657447741554885\n",
      "4.2105263157894735 7.368421052631579 4.900747722451694 0.5663314927895808 8.653496732650458\n",
      "4.2105263157894735 7.894736842105263 4.9024287850351715 0.5690465389163797 8.615163171663845\n",
      "4.2105263157894735 8.421052631578947 4.903921578589721 0.5678358315358196 8.636160851854198\n",
      "4.2105263157894735 8.947368421052632 4.903430089829774 0.572716592687609 8.561704257282404\n",
      "4.2105263157894735 9.473684210526315 4.901859457827019 0.565766133277003 8.664109018747212\n",
      "4.2105263157894735 10.0 4.904659653928277 0.5694822999716528 8.612488314689354\n",
      "4.7368421052631575 0.0 3.153504380617715 2.948484992590139 1.0695338075461844\n",
      "4.7368421052631575 0.5263157894736842 3.9756397472591067 2.7372296444738042 1.4524319343411796\n",
      "4.7368421052631575 1.0526315789473684 4.623738101878435 2.2737447537561515 2.0335343684642577\n",
      "4.7368421052631575 1.5789473684210527 5.0052959856063115 1.8000910800002354 2.780579294690831\n",
      "4.7368421052631575 2.1052631578947367 5.228746893268316 1.3334431507035216 3.9212372049829356\n",
      "4.7368421052631575 2.631578947368421 5.325457969240911 1.0531673917337445 5.056611143717657\n",
      "4.7368421052631575 3.1578947368421053 5.378867466215784 0.8287095295902508 6.49065477607736\n",
      "4.7368421052631575 3.6842105263157894 5.403278732322008 0.6938964610245973 7.786865960295583\n",
      "4.7368421052631575 4.2105263157894735 5.4123777283435865 0.6165539639198048 8.77843310573148\n",
      "4.7368421052631575 4.7368421052631575 5.4165179817666855 0.5819404945345473 9.307683573556728\n",
      "4.7368421052631575 5.263157894736842 5.416794372107682 0.5687560421321151 9.523932883071556\n",
      "4.7368421052631575 5.789473684210526 5.419369105154081 0.5665589555116748 9.565410717512533\n",
      "4.7368421052631575 6.315789473684211 5.420564117123204 0.565873743845383 9.579105191005816\n",
      "4.7368421052631575 6.842105263157895 5.423876761010605 0.5638515475464578 9.61933470717966\n",
      "4.7368421052631575 7.368421052631579 5.421106639178725 0.5642805738069869 9.60711194185647\n",
      "4.7368421052631575 7.894736842105263 5.418367709610677 0.5633762761654354 9.617671064337777\n",
      "4.7368421052631575 8.421052631578947 5.4190316619236 0.5625486035513929 9.633001713475112\n",
      "4.7368421052631575 8.947368421052632 5.421802197823176 0.5627037352948067 9.635269605919062\n",
      "4.7368421052631575 9.473684210526315 5.420448346316595 0.5637051506316019 9.615750965275497\n",
      "4.7368421052631575 10.0 5.417011460697467 0.5593914369378966 9.683758282661845\n",
      "5.263157894736842 0.0 3.4653543728365572 3.1966619932266043 1.0840540476845173\n",
      "5.263157894736842 0.5263157894736842 4.389867358598542 2.936043282337054 1.4951643884160528\n",
      "5.263157894736842 1.0526315789473684 5.06217476795052 2.4548937106129065 2.0620749265297764\n",
      "5.263157894736842 1.5789473684210527 5.488785215111772 1.9126234953025274 2.8697677449808743\n",
      "5.263157894736842 2.1052631578947367 5.726589455410934 1.4291585477012754 4.0069658223867775\n",
      "5.263157894736842 2.631578947368421 5.83011633095266 1.108301229455508 5.260407708666813\n",
      "5.263157894736842 3.1578947368421053 5.89425589865525 0.8428080915087162 6.993591967186628\n",
      "5.263157894736842 3.6842105263157894 5.916627817239443 0.7081485504108594 8.355065916334484\n",
      "5.263157894736842 4.2105263157894735 5.927474805816172 0.6191925028362553 9.572911136140945\n",
      "5.263157894736842 4.7368421052631575 5.933508231339771 0.5856307894311543 10.131824245619352\n",
      "5.263157894736842 5.263157894736842 5.936986428453134 0.5663493172042828 10.482905599251666\n",
      "5.263157894736842 5.789473684210526 5.936903851946187 0.559039778971557 10.6198236248377\n",
      "5.263157894736842 6.315789473684211 5.934978669885188 0.560381079741648 10.590969046673358\n",
      "5.263157894736842 6.842105263157895 5.937902466038219 0.5585297981443158 10.631308277135025\n",
      "5.263157894736842 7.368421052631579 5.938880263835578 0.558503429525367 10.633560959299063\n",
      "5.263157894736842 7.894736842105263 5.93892400863042 0.5588784902731093 10.626503098604177\n",
      "5.263157894736842 8.421052631578947 5.93551079384006 0.557138273970998 10.653568550469098\n",
      "5.263157894736842 8.947368421052632 5.9357733328144935 0.5581581101927421 10.634573294589885\n",
      "5.263157894736842 9.473684210526315 5.936620388499819 0.5545658597838533 10.704987124186959\n",
      "5.263157894736842 10.0 5.936935262491247 0.5556325526990448 10.685002586065101\n",
      "5.789473684210526 0.0 3.7692687039493267 3.4475459776763113 1.0933193431954924\n",
      "5.789473684210526 0.5263157894736842 4.799588231920178 3.144547608849134 1.5263207395599805\n",
      "5.789473684210526 1.0526315789473684 5.506223569504477 2.6255259946711744 2.097188746437868\n",
      "5.789473684210526 1.5789473684210527 5.98055399209892 2.016065279845666 2.9664485827347535\n",
      "5.789473684210526 2.1052631578947367 6.2294601088610095 1.500106525812087 4.152678494274714\n",
      "5.789473684210526 2.631578947368421 6.346513934675128 1.1403115333923166 5.565596548686009\n",
      "5.789473684210526 3.1578947368421053 6.407356975560028 0.8778782198659466 7.298685433314933\n",
      "5.789473684210526 3.6842105263157894 6.432472312382157 0.727345062851503 8.84376981561423\n",
      "5.789473684210526 4.2105263157894735 6.444953311244882 0.6180381728440293 10.428082915311055\n",
      "5.789473684210526 4.7368421052631575 6.451185778573945 0.5734240793344941 11.250287546454409\n",
      "5.789473684210526 5.263157894736842 6.449973488839612 0.5609407073096547 11.498494234398734\n",
      "5.789473684210526 5.789473684210526 6.453016266140048 0.5540024933432703 11.647991378518286\n",
      "5.789473684210526 6.315789473684211 6.4560541131081255 0.5547563780841568 11.637638372728613\n",
      "5.789473684210526 6.842105263157895 6.4542774385738975 0.5496640726789158 11.742221766682828\n",
      "5.789473684210526 7.368421052631579 6.4517940636455 0.5507462215365952 11.714640630025276\n",
      "5.789473684210526 7.894736842105263 6.452872962609639 0.5519290240404248 11.691490538712843\n",
      "5.789473684210526 8.421052631578947 6.453377245688396 0.5533812672016385 11.661719736777691\n",
      "5.789473684210526 8.947368421052632 6.454228268977082 0.5499124791753766 11.736828156101396\n",
      "5.789473684210526 9.473684210526315 6.452515097901932 0.5495622820710312 11.741189867662609\n",
      "5.789473684210526 10.0 6.451617613377086 0.547946345351232 11.774177650991755\n",
      "6.315789473684211 0.0 4.085371660836285 3.6971839448227275 1.1049955105850624\n",
      "6.315789473684211 0.5263157894736842 5.187365869839581 3.3598823903752484 1.543912931208354\n",
      "6.315789473684211 1.0526315789473684 5.98076840581778 2.7740808159426464 2.1559459881075904\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "6.315789473684211 1.5789473684210527 6.470011844480748 2.12743476734774 3.0412269009530535\n",
      "6.315789473684211 2.1052631578947367 6.736876034346445 1.5730763475239655 4.282612248890743\n",
      "6.315789473684211 2.631578947368421 6.867424195056016 1.1594124266182422 5.9231935395817885\n",
      "6.315789473684211 3.1578947368421053 6.921556360808942 0.8811119851838728 7.855478619286438\n",
      "6.315789473684211 3.6842105263157894 6.950036971803076 0.7255902397352622 9.578459840279628\n",
      "6.315789473684211 4.2105263157894735 6.963790195049265 0.6281149721802881 11.08680815373152\n",
      "6.315789473684211 4.7368421052631575 6.96762240708124 0.576296277572115 12.09034775729459\n",
      "6.315789473684211 5.263157894736842 6.969759480619565 0.5571549407686579 12.509553394615864\n",
      "6.315789473684211 5.789473684210526 6.969267006698829 0.5465325683895115 12.751787194010115\n",
      "6.315789473684211 6.315789473684211 6.970514933352063 0.5510771607626345 12.648890989613111\n",
      "6.315789473684211 6.842105263157895 6.96861947534968 0.5448589413867421 12.78976804090536\n",
      "6.315789473684211 7.368421052631579 6.970982795738338 0.5450112706421604 12.790529611478982\n"
     ]
    },
    {
     "ename": "KeyboardInterrupt",
     "evalue": "",
     "output_type": "error",
     "traceback": [
      "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[0;31mKeyboardInterrupt\u001b[0m                         Traceback (most recent call last)",
      "\u001b[0;32m<ipython-input-10-263240bbee7e>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mmain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[0;32m<ipython-input-9-92f1fcf4b93b>\u001b[0m in \u001b[0;36mmain\u001b[0;34m()\u001b[0m\n\u001b[1;32m      8\u001b[0m         \u001b[0mcount\u001b[0m \u001b[0;34m+=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m      9\u001b[0m         \u001b[0mcoeffs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m{\u001b[0m\u001b[0;34m'forecast'\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mitem\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'hl'\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mitem\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'sigma'\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m}\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 10\u001b[0;31m         \u001b[0moutput\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mbatch\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcoeffs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mn_iter\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m1e5\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmax_hp\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m100\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mprf\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mprf\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mloss\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mloss\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m     11\u001b[0m         \u001b[0moutputs\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moutput\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m     12\u001b[0m     \u001b[0;32mreturn\u001b[0m \u001b[0moutputs\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m<ipython-input-5-c54f702930c6>\u001b[0m in \u001b[0;36mbatch\u001b[0;34m(coeffs, n_iter, max_hp, prf, loss, seed)\u001b[0m\n\u001b[1;32m     15\u001b[0m                 \u001b[0mdiff\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mp\u001b[0m \u001b[0;34m-\u001b[0m \u001b[0mseed\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m     16\u001b[0m                 \u001b[0mhp\u001b[0m \u001b[0;34m+=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 17\u001b[0;31m                 \u001b[0;32mif\u001b[0m \u001b[0mdiff\u001b[0m \u001b[0;34m>\u001b[0m \u001b[0mthrs\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0mdiff\u001b[0m \u001b[0;34m<\u001b[0m \u001b[0;34m-\u001b[0m\u001b[0mthrs\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0mhp\u001b[0m \u001b[0;34m>\u001b[0m \u001b[0mmax_hp\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m     18\u001b[0m                     \u001b[0min_outputs\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdiff\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m     19\u001b[0m                     \u001b[0;32mbreak\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;31mKeyboardInterrupt\u001b[0m: "
     ]
    }
   ],
   "source": [
    "main()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
